package com.etc.youkeshoppingssm.dao;

import com.etc.youkeshoppingssm.entity.Category;
import com.etc.youkeshoppingssm.entity.Goods;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

public interface IGoodsDao {
    List<Category> showIndex();

    /**
     * 根据ID 查询商品详情
     * @param id
     * @return
     */

    Goods findOfGood(@Param("id") int id);
}
